show that f and g are inverse functions algebraically and graphically